import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '执法人姓名',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '执法证号',
        prop: 'p2',
        search: true,
        overHidden: true,
      },
      {
        label: '身份证号码',
        prop: 'p3',
        overHidden: true,
        search: true,
      },
      {
        label: '图片',
        prop: 'p6',
        overHidden: true,
      },
      {
        label: '性别',
        prop: 'p7',
        overHidden: true,
      },
      {
        label: '职务',
        prop: 'p8',
        overHidden: true,
      },
      {
        label: '执法证号',
        prop: 'p9',
        overHidden: true,
      },
      {
        label: '身份证号',
        prop: 'p10',
        overHidden: true,
      },
      {
        label: '部门',
        prop: 'p11',
        overHidden: true,
      },
      {
        label: '执法门类',
        prop: 'p12',
        overHidden: true,
      },
      {
        label: '证件状态',
        prop: 'p13',
        overHidden: true,
        type: 'select',
        search: true
      },
      {
        label: '审核状态',
        prop: 'p14',
        overHidden: true,
        type: 'select',
        search: true
      },
      {
        label: '从事执法日期',
        prop: 'p15',
        overHidden: true,
      },
      {
        label: '执法区域',
        prop: 'p16',
        overHidden: true,
      },
    ]
  }
}
